<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style>
  body{
  background-color:#cfe6ed;
  background-image:url('file:///android_asset/bg.png');
  margin:8px;
  }
  #content {
		background-image:url('file:///android_asset/contentbg.png');border:solid 2px;border-color:#97af15;
		background-color:#ffffff;
		padding:8px;
		word-wrap:break-word;
		word-break: normal;
		-moz-border-radius: 9px;
	  	-webkit-border-radius: 9px;
	  	border-radius: 9px;
	   	-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	  	-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	  	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	}
  #comment_content {
		background-color:#ffffff;
		padding:8px;
		word-wrap:break-word;
		word-break: normal;
		-moz-border-radius: 9px;
	  	-webkit-border-radius: 9px;
	  	border-radius: 9px;
	   	-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	  	-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	  	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	}	
  </style>
    
  <title>冷笑话</title>
  </head>
	<body>

<div id="content">
		<div style="font-size:24px;">
			<img src="http://lhy.kync.com/site_media/edit24.png"/>{{humor.title}}
		</div>
		<div style="text-align:right;font-size:12px;">{{humor.user.name}}<br/>{{humor.date|date:'Y-m-d H:i'}}</div>
		<hr/>
	<div id="content-text">
		{{humor.html|safe}}
		<hr/>
		<div id="dole" style="text-align:right;font-size:16px">
			<div class="tag"><a href="!like">赞/收藏({{humor.like}})</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="!comment">评论({{humor.commentcnt}})</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="!share">分享</a>&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/><a href="!pre">上一篇</a>&nbsp;&nbsp;<a href="!next">下一篇</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
		</div>	
	</div>
</div>
<div>
{% if comments %}	
    {% for comment in comments	%}
    <br/>
    <div id="comment_content">
    	<div style="font-size:12px;">
		{{comment.user.name}}:
		</div>
		<hr/>
		<div style="background-color:#FFEFD5;">
			{{comment.body}}
		</div>
		<div style="text-align:right;font-size:12px;">
			{{comment.date|date:'Y-m-d H:i'}}
		</div>
	</div>
		
{% endfor %}
{% endif %}
</body>
</html>